<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<script>
function showAll(){
	document.myForm.action="allSesults.php";
	document.myForm.submit();
}
function pressAdd(){
	document.myForm.action="results.php?param0=1";
	document.myForm.submit();
	
	document.getElementById('idId').value = "";
	document.getElementById('userId').value = "";
	document.getElementById('passId').value = "";
}
function pressMod(){
	document.myForm.action="results1.php";
	document.myForm.submit();
	
	document.getElementById('idId').value = "";
	document.getElementById('userId').value = "";
	document.getElementById('passId').value = "";
}
function pressDel(){
	document.myForm.action="results2.php";
	document.myForm.submit();
	
	document.getElementById('idId').value = "";
	document.getElementById('userId').value = "";
	document.getElementById('passId').value = "";
}
</script>
</head>

<body>
<form name="myForm" method="post" target="f2">
<table width="300" border="1">
  <tr>
    <td>id</td>
    <td><input readonly="readonly" id="idId" name="idV"/></td>
  </tr>
  <tr>
    <td>user name</td>
    <td><input id="userId" name="userV"/></td>
  </tr>
  <tr>
    <td>password</td>
    <td><input id="passId" name="passV"/></td>
  </tr>
</table>
<table>
<tr><td><input type="button" value="Add" onclick="pressAdd();"/></td><td><input type="button" value="Modify" onclick="pressMod();"/><td><input type="button" value="Delete" onclick="pressDel();"/></tr>
</table>
</form>

</body>
</html>
